/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.sorbonne.soa.lib;

import fr.sorbonne.soa.entity.*;
import java.util.Date;
import javax.ejb.Local;

/**
 *
 * @author Nairo
 */
@Local
public interface ManagerDistributorLocal {
    public void createOrder(Productinfo p, int qte);
    public void createShipperInvoice(InvoiceToDistributor invoice,
            Date estimatedShippingDate);
    public void createManufacturerInvoice(InvoiceToDistributor invoice, Date estimatedProductionStartDate);
    public void receivePayment(InvoiceToDistributor invoice);
    public void createShipperDelay(String orderId, Date newDeliveryDate);
    public void setProductionDate(String orderId, Date productionDate);
    public void createInvoiceDelayPenalty(InvoiceDelayToDistributor invoice);
    public void setOrderDelivered(String orderId);
    public void createInvoiceShipperDelayPenalty(String orderId, Date dateDelay);
    public void receiveCustomerPayment(Customerorder order, Double amount);
}
